package com.dfbz.springboot_project.service.impl;

import com.dfbz.springboot_project.entity.Privilege;
import com.dfbz.springboot_project.mapper.PrivilegeMapper;
import com.dfbz.springboot_project.service.PrivilegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class PrivilegeServiceImpl implements PrivilegeService {
    @Autowired
    PrivilegeMapper privilegeMapper;
    @Override
    public List<Privilege> selectAll(){
        return privilegeMapper.selectAll();
    }
    @Override
    public List<Privilege> selectPrivilegesByRid(Integer Rid){
        return privilegeMapper.selectPrivilegesByRid(Rid);
    }
}
